package com.zxh.mall.product.feign;

import com.zxh.mall.common.dto.SkuHasStockDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author zhengxh
 * @version 1.0
 * @date 2024/4/25 - 04 - 25 - 22:15
 * @description com.zxh.mall.product.feign
 */
@FeignClient("mall-ware")
public interface WareSkuFeignService {

    @PostMapping("/ware/waresku/hasStock")
    public List<SkuHasStockDto> getSkusHasStock(@RequestBody List<Long> skuIds);
}
